import { defineStore } from 'pinia'
 
export const useSceneStore = defineStore({
    //id 是为了更好地区分模块
    id: 'scene',
    state: () => ({
        projectConfig:null,
        projectId:null,
        currentFlowNode:null,
        currentTimelineTime:null,
        currentAttrItem:null,
        projectDetails: null,
        livekitRoom: null,
        isSleeping: true,
        timelineRef: null,
        currentFlowNodes: [],
        animationRefList:[],
        svgAnimRefList:[],
        projectType: null,
        currentQuestion: '',
        currentQuestionType: '', // 问题类型，语音提问stt或文字提问text
    }),
    getters: {
        // doubleCount: (state) => state.count * 2,
    },
    actions: {
        // 定义操作或异步请求
       
        // 在actions中异步获取loginUser的数据
        // async getUserInfo() {
        //     this.userInfo = await API.loginUser()
        //     console.log('user-info', this.userInfo);
        // }
    }
})